/*
 * Filename:    OrgReviewDao.java
 * Copyright:   2014 中国平安保险（集团）股份有限公司 版权所有
 * Company:     平安科技养老险及健康险系统开发部
 * Create at:   2014-11-14
 */
package com.paic.mhis.hcpms.evaluation.evaluationOrg.orgReview.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Component;

import com.paic.mhis.hcpms.evaluation.evaluationOrg.evaluationIntegrity.dto.EvalMarkDeatilInfoDTO;
import com.paic.mhis.hcpms.evaluation.evaluationOrg.evaluationIntegrity.dto.EvalMarkInfoDTO;
import com.paic.mhis.hcpms.evaluation.evaluationOrg.evaluationIntegrity.dto.EvaluationMarkContentDTO;
import com.paic.mhis.hcpms.evaluation.evaluationOrg.orgReview.dto.OrgReviewComfirmDTO;
import com.paic.pafa.biz.dao.BaseDAO;

@Component("orgReviewDao")
public class OrgReviewDao extends BaseDAO {
	/**
	 * 考评表id获取对应的各分组类考评详细信息
	 * 
	 * @param bean
	 */
	public List<OrgReviewComfirmDTO> getEvalMarkUserComfirmInfo(String id) {
		return (List<OrgReviewComfirmDTO>) this._list("orgReview.getEvalMarkUserComfirmList", id);
	}
	
	/**
	 * 根据考评规则ID 加载对应的考核内容
	 * 
	 * @param categoryId
	 * @return
	 */
	public List<EvaluationMarkContentDTO> queryEvaluationContentDTO(String id) {
		return (List<EvaluationMarkContentDTO>) this._list("orgReview.queryEvaluationRuleContent", id);
	}
	/**
	 * 根据考核内容id加载对应的细则
	 * 
	 * @param contentId
	 * @return
	 */
	public List<EvalMarkDeatilInfoDTO> queryEvaluationMarkRuleDTO(Map<String,Object> map) {
		return (List<EvalMarkDeatilInfoDTO>) this._list("orgReview.queryEvaluationMarkRule", map);
	}
	/**
	 * 根据考核细则id 加载对应的扣分值信息
	 * 
	 * @param markInfoId
	 * @return
	 */
	public List<EvalMarkInfoDTO> queryEvaluationMarkValueDTO(Map<String,Object> map) {
		return (List<EvalMarkInfoDTO>) this._list("orgReview.queryEvaluationMarkValues", map);
	}
	/**
	 * 审核撤销
	 */
	/**
	 * 机构审核撤销
	 * @param map
	 */
	public void cancelMedialIntegrity(Map<String, Object> map) {
		this._update("orgReview.cancelMedialIntegrity", map);
	}
	/**
	 * @return status
	 */
	public int isAbleCancel(Map<String, Object> map) {
		return this._getInt("orgReview.isAbleCancel", map);
	}
	/**
	 * 重置考评保存置为无效
	 */
	public void reSetEvalOpinion(Map<String, Object> map){
		this._update("orgReview.reSetEvalOpinion",map);
	}
}
